
package au.com.lastweekend.jim.actions;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import org.flexdock.perspective.PerspectiveManager;

import au.com.lastweekend.jim.swing.SwingUtil;
import au.com.lastweekend.jim.view.JimViewPort;

public class ResetPerspectiveAction extends AbstractAction {

    private static final long serialVersionUID = 1L;

    public ResetPerspectiveAction() {

        super("Reset Perspective");
        putValue(SwingUtil.MENU, "View");
    }

    public void actionPerformed(ActionEvent e) {

        PerspectiveManager.getInstance().setCurrentPerspective(JimViewPort.JP1);
        PerspectiveManager.getInstance().reset();

    }

}
